import axios from "axios";
const URL = "http://1.117.144.199:3000";
const _id = "60f63708636d6c72a362daa2";
export default {
  // isPhoneExistApi: (params) => axios.post(URL + "/users/isphoneexist", params),
  // 使用方法 引入组件中, 使用isPhoneExistApi(params对象数据).then(res) => {res.data} 就可以得到数据
  // 登入
  // 登录判断
  LoginPhoneExist: (params) =>
    axios.post(URL + "/users/loginphoneexist", params),
  // 登录获取验证码
  LoginGetApi: (params) => axios.post(URL + "/users/login", params),
  // 注册判断
  RegisterPhoneExist: (params) =>
    axios.post(URL + "/users/registerphoneexist", params),
  // 注册手机号验证
  RegistergetApi: (params) => axios.post(URL + "/users/register", params),

  isPhoneExistApi: (params) => axios.post(URL + "/users/isphoneexist", params),
  // 使用方法 引入组件中, 使用isPhoneExistApi(params对象数据).then(res) => {res.data} 就可以得到数据
  ClassifyApi: (params) =>
    axios.post(URL + "/products/geterjiclassify", params),
  getProductApi: (params) => axios.get(URL + "/products/getproduct", params),
  getIdProductApi: (params) =>
    axios.get(URL + "/products/getidproduct?_id=" + params._id, params),
  //上传宠物信息
  isPetsUploadpetApi: (params) => axios.post(URL + "/pets/uploadpet", params),
  isGetpetApi: (params) => axios.post(URL + "/pets/getpet", params),
  mineDataApi: (params) => axios.post(URL + "/users/getpersonal", params),
  sendMineDataApi: (params) => axios.post(URL + "/users/getpersonal", params),
  getCityDataApi: (params) => axios.post(URL + "/area/list", params),
  getIndexClassify: (params) =>
    axios.post(URL + "/products/getindexclassify", params),
  getproduct: (params) => axios.get(URL + "/products/getproduct", params),
  getOrderDataApi: (params) =>
    axios.get(URL + "/products/getidproduct?_id=" + _id, params),
  sendDataApi: (params) => axios.post(URL + "/users/getpersonal", params),
};
